/* 
  Copyright (c) SilverLining 2015
  Date:    2016-1-7
  File:    m_error.h  
  Description: 
    Holds the error codes and messages for the native library.
*/

#ifndef _M_ERROR_H_
#define _M_ERROR_H_

#define MONORET(Y,X) MAKE_HRESULT(SEVERITY_ERROR,Y,X)

/*
	Facilities.
*/

/// <summary>
/// All errors belonging to objects.
/// </summary>
#define FACILITY_OBJECT 8001
/// <summary>
/// All errors belonging to processes.
/// </summary>
#define FACILITY_PROCESS 8002
/// <summary>
/// All errors belonging to text utilities.
/// </summary>
#define FACILITY_TEXTMODEL 8003
/// <summary>
/// All errors belonging to packages.
/// </summary>
#define FACILITY_PACKAGE 8004
/// <summary>
/// All errors belonging to files.
/// </summary>
#define FACILITY_FILE 8005
/// <summary>
/// All errors belonging to 7-zip.
/// </summary>
#define FACILITY_7ZA 8006
/// <summary>
/// All errors belonging to archives.
/// </summary>
#define FACILITY_ARCHIVE 8007
/// <summary>
/// All errors belonging to the binary serializer.
/// </summary>
#define FACILITY_BINARY_SERIALIZER 8008
/// <summary>
/// All errors belonging to the JSON formatter.
/// </summary>
#define FACILITY_JSON 8009


#endif //_M_ERROR_H_
